/**
 * description: 订单管理数据Mock
 * author: ligy
 * createdDate: 2020-11-13
 */
export default [
  {
    url: '/vePackMaintenance',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            optionalPackageCode: 'AA',
            optionalPackageName: '白色',
            price: '50000',
            isable: '启用'
          },
          {
            optionalPackageCode: 'BB',
            optionalPackageName: '红色',
            price: '80000',
            isable: '启用'
          }
        ]
      }
    }
  },
  {
    url: '/veInteriorColor',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            interiorColorCoding: 'AA',
            interiorColorName: '白色',
            price: '100000',
            isable: '启用'
          },
          {
            interiorColorCoding: 'BB',
            interiorColorName: '红色',
            price: '500000',
            isable: '启用'
          }
        ]
      }
    }
  },
  {
    url: '/veBodyColor',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            bodyColorCoding: 'AA',
            bodyColorName: '白色',
            optionalPackageDetailCode: 'AA',
            optionalPackageDetailName: '合计轮毂',
            price: '0',
            isable: '启用'
          },
          {
            bodyColorCoding: 'BB',
            bodyColorName: '红色',
            optionalPackageDetailCode: 'BB',
            optionalPackageDetailName: '全自动天窗',
            price: '10000',
            isable: '启用'
          }
        ]
      }
    }
  },
  {
    url: '/commonSelectX',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            b: 'VIN码',
            a: '请输入VIN码：例如：901203LKSDLA'
          },
          {
            b: '电动机码',
            a: '请输入电动机码：例如：901203LKSDLA'
          },
          {
            b: '合格证号',
            a: '请输入合格证号：例如：901203LKSDLA'
          },
          {
            b: '车牌号',
            a: '请输入车牌号：例如：901203LKSDLA'
          }
        ]
      }
    }
  },
  {
    url: '/ve/config/cartype',
    type: 'post',
    data: {},
    response: config => {
      const { pageSize } = config.body
      return {
        result: '1',
        msg: 'Success',
        rows: Array(pageSize).fill({
          id: '@id',
          carSeriesCode: 'DHSNNKLL',
          carSeriesName: '东风XX',
          vehicleCode: 'DHLLMMCC',
          'vehicleName|1': [
            '俊风ER30',
            '俊风E11K',
            '御风S16',
            '御风',
            '御风EV',
            '东风皮卡'
          ],
          'vehicleConfigCode|1': [
            'SMDKL',
            'DHSN',
            'BFHDJ',
            'CBVN',
            'HFGT',
            'VBNF'
          ],
          'vehicleConfigName|1': ['哈哈', '嘻嘻', '呵呵']
        })
      }
    }
  },
  {
    url: '/cartype',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            carSeriesCode: 'B2',
            carSeriesName: 'B2-2.0',
            vehicleCode: 'BASD',
            vehicleName: 'BASJD高配',
            vehicleConfigCode: 'ASKJDQ9123',
            vehicleConfigName: ''
          },
          {
            carSeriesCode: 'B2',
            carSeriesName: 'B2-2.0',
            vehicleCode: 'BASD',
            vehicleName: 'BASJD高配',
            vehicleConfigCode: 'ASKJDQ9123',
            vehicleConfigName: ''
          }
        ]
      }
    }
  },
  {
    url: '/pinBackAudit',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            storeName: '@cname',
            salesReturnApplicationNumber: '@cname',
            returnType: '@cname',
            status: '@cname',
            applicationDate: '@cname',
            applicant: '@cname',
            totalReturnAmount: '@cname',
            returnRequestReason: '@cname',
            whetherPostAttachments: '@cname',
            associatedOrderNumber: '@cname',
            modelConfigurationName: '@cname',
            'AuditInstructions|1': ['同意', '不同意']
          }
        ]
      }
    }
  },
  {
    url: '/refundApplication',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            salesReturnApplicationNumber: '@cname',
            returnType: '@cname',
            status: '@cname',
            applicationDate: '@cname',
            totalReturnAmount: '@cname',
            returnRequestReason: '@cname',
            whetherPostAttachments: '@cname',
            associatedOrderNumber: '@cname',
            modelConfigurationName: '@cname'
          }
        ]
      }
    }
  },
  {
    url: '/salesReturnstock',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            operating: '@cname',
            returnType: '@cname',
            revocationApplicationNumber: '@cname',
            orderNumber: '@cname',
            orderDate: '@cname',
            vin: '@cname',
            carSeriesCode: '@cname',
            carsName: '@cname',
            modelConfigurationCode: '@cname',
            modelConfigurationName: '@cname',
            customerName: '@cname',
            customerPhone: '@cname'
          }
        ]
      }
    }
  },
  {
    url: '/vehicleRegistrationInformation',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            vinCode: '@cname',
            configurationCode: '@cname',
            carSeries: '@cname',
            vehicleModel: '@cname',
            bodyColor: '@cname',
            interiorColor: '@cname',
            qualityStatus: '@cname',
            brandModel: '@cname',
            placeOrigin: '@cname',
            certificate: '@cname',
            drivingType: '@cname',
            motorModel: '@cname',
            motorSerialNumber: '@cname',
            batteryModel: '@cname',
            batteryPackSerialNumber: '@cname',
            offlineDate: '@cname',
            productionDate: '@cname',
            numberPlate: '@cname',
            storageDate: '@cname',
            customerName: '@cname'
          }
        ]
      }
    }
  },
  {
    url: '/inventorySummaryQuery',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            carSeries: '@cname',
            vehicleModel: '@cname',
            vehicleConfiguration: '@cname',
            bodyColor: '@cname',
            interiorColor: '@cname',
            number: '@cname',
            warehouse: '@cname'
          }
        ]
      }
    }
  },
  {
    url: '/inventoryDetailsInquiry',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            vin: '',
            storageTime: '2019-03-09',
            inventoryStatus: '临时出库',
            vehicleState: '在库车',
            vehicleType: '试乘试驾车',
            salesStatus: '',
            numberPlate: '',
            deliveryCity: '',
            carName: '',
            vehicleConfigurationCode: '',
            vehicleConfigurationName: '',
            wareHouse: '广州',
            bodyColorName: '',
            interiorColorName: '',
            brandModel: '',
            placeOrigin: '武汉',
            certificate: '',
            driveType: '',
            motorModel: '',
            motorSerialNumber: '',
            batteryModel: '',
            batteryPackSerialNumber: '',
            offlineDate: '',
            dateCertificatePrinting: '',
            nameDepositor: '',
            vehicleStatus: '待配车',
            vehicleOrderType: '未配车',
            allocationTime: '',
            inventoryNote: ''
          }
        ]
      }
    }
  },
  {
    url: '/inventoryQuery',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            vin: '',
            inventoryStatus: '临时出库',
            vehicleState: '在库车',
            vehicleType: '试乘试驾车',
            vehicleStatus: '待配车',
            vehicleOrderType: '未配车',
            qualityStatus: '正常',
            withCarTime: ' 2019-02-22 01:02:33',
            storageTime: '2019-03-09',
            slot: 'PZ001',
            storageLocation: '123',
            wareHouse: '广州',
            carSeries: '',
            vehicleModel: '',
            vehicleConfiguration: '',
            vehicleConfigurationName: '',
            carColor: '褐色',
            interiorColor: '黑色内饰',
            brandModel: '',
            placeOrigin: '武汉',
            certificate: '',
            driveType: '',
            motorModel: '',
            motorSerialNumber: '',
            batteryModel: '',
            batteryPackSerialNumber: '',
            offlineDate: '',
            productionDate: '',
            cityLibraryAge: ''
          }
        ]
      }
    }
  },
  {
    url: '/vehicleScrapSetting',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            scarpType: '',
            scarpReason: '',
            carsState: '库存车'
          }
        ]
      }
    }
  },
  {
    url: '/vehicleRestrictions',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            isRestricted: '@cname',
            restrictionType: '@cname',
            limitTime: '@cname',
            vehicleType: '@cname',
            vinCode: '@cname',
            carSeries: '@cname',
            vehicleModel: '@cname',
            vehicleConfigurationCode: '@cname',
            vehicleConfiguration: '@cname',
            carColor: '@cname',
            interiorColor: '@cname',
            qualityStatus: '@cname',
            wareHouse: '@cname',
            storageTime: '@cname'
          }
        ]
      }
    }
  },
  {
    url: '/salesOfOutbound',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            carBrandCode: '',
            batchNumber: 'HSD10293AS',
            pdiState: '未发起新车PDI',
            pdiTime: '2020/12/12',
            estimatedTime: '2020/12/12  18：00：00'
          },
          {
            carBrandCode: '',
            batchNumber: 'HSD10293AS',
            pdiState: '未发起新车PDI',
            pdiTime: '',
            estimatedTime: ''
          },
          {
            carBrandCode: '',
            batchNumber: 'HSD10293AS',
            pdiState: '',
            pdiTime: '',
            estimatedTime: ''
          }
        ]
      }
    }
  },
  {
    url: '/getacceptanceList',
    type: 'post',
    response: config => {
      return {
        result: '1',
        msg: 'success',
        rows: [
          {
            orderLabel: 'IN14185560',
            batchNumber: '12ISA',
            orderDate: '2019/12/12',
            vinCode: 'HSD10293AS',
            cars: 'DV',
            vehicleConfigurationCode: '90ASDNAAS',
            vehicleConfigurationName: '高配A2红色',
            carColor: '红+黑顶',
            interiorColor: '黑内+黑顶',
            optionalPackage: '9NASD'
          },
          {
            orderLabel: 'IN14185560',
            batchNumber: '12ISA',
            orderDate: '',
            vinCode: 'HSD10293AS',
            cars: '',
            vehicleConfigurationCode: '90ASDNAAS',
            vehicleConfigurationName: '高配A2红色',
            carColor: '',
            interiorColor: 'IOEASDK9903',
            optionalPackage: '9NASD'
          },
          {
            orderLabel: 'IN14185560',
            batchNumber: '12ISA',
            orderDate: '',
            vinCode: '',
            cars: '',
            vehicleConfigurationCode: '90ASDNAAS',
            vehicleConfigurationName: '',
            carColor: '',
            interiorColor: '',
            optionalPackage: ''
          }
        ]
      }
    }
  }
]
